<?php
declare(strict_types=1);

namespace App\Jobs\Streamer\Task;


use App\Jobs\Job;
use App\Repositories\Streamer\StreamerTaskRecordRepository;

class ReceiveGiftsJob extends Job
{
    public $userId;
    public $count;

    public function __construct(int $userId, int $count = 1)
    {
        $this->userId = $userId;
        $this->count = $count;
    }


    public function handle()
    {
        StreamerTaskRecordRepository::getInstance()->receiveGiftsProgress($this->userId, $this->count);
    }

}